package zlatan_demo08_set

object ClassDemo01 {
  def main(args: Array[String]): Unit = {

    val set1 = Set[Int]()
    val set2 = Set(1, 1, 2, 3, 4, 5)

    for (i <- set2) println(i)

    val set3 = set2 - 3
    println(s"集合set2删除3结果:${set3}")
    println(s"集合set2的长度为${set2.size}")

  }

}
